﻿<dxc:DXWindow x:Class="ThanNhanTao.frmThongKeTongBNChayThan"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
        xmlns:dxc="http://schemas.devexpress.com/winfx/2008/xaml/core"
        xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
         xmlns:local="clr-namespace:ConvertCustom"
        dxc:ThemeManager.ThemeName="Office2007Blue" Icon="/ThanNhanTao;component/Images/Icons/print-16x16.png"             
        xmlns:dxp="http://schemas.devexpress.com/winfx/2008/xaml/printing"
        Title="Tên và tổng số bệnh nhân chạy trong ngày" WindowState="Maximized">
    <Grid>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="130"></RowDefinition>
                <RowDefinition Height="1*"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <GroupBox Grid.Column="0" Grid.Row="0" Margin="2 2 2 2" VerticalAlignment="Top" Header="Thông tin thống kê">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="30"></RowDefinition>
                        <RowDefinition Height="30"></RowDefinition>
                        <RowDefinition Height="30"></RowDefinition>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="150"></ColumnDefinition>
                        <ColumnDefinition Width="150"></ColumnDefinition>
                        <ColumnDefinition Width="60"></ColumnDefinition>
                        <ColumnDefinition Width="120"></ColumnDefinition>
                        <ColumnDefinition Width="40"></ColumnDefinition>
                        <ColumnDefinition Width="70"></ColumnDefinition>
                        <ColumnDefinition Width="100"></ColumnDefinition>
                        <ColumnDefinition></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <Label Content="Từ ngày:" Width="50" HorizontalAlignment="Left" Grid.Column="0" Grid.Row="0" VerticalAlignment="Center" />
                    <Label Content="Đến ngày:" Margin="4,0,0,0" Width="57" HorizontalAlignment="Left" Grid.Column="1" Grid.Row="0" VerticalAlignment="Center" />
                    <Label Content="Thống kê:" Grid.Column="2" Grid.Row="0" VerticalAlignment="Center" Margin="2,2" />
                    <dxe:ComboBoxEdit Grid.Column="3" Grid.Row="0" Name="cboThongKe" SelectedIndex="0" IsTextEditable="False" 
                                      Margin="2,2" Grid.ColumnSpan="2" SelectedIndexChanged="cboThongKe_SelectedIndexChanged">
                        <dxe:ComboBoxEditItem Content="BN chạy thận"></dxe:ComboBoxEditItem>
                        <dxe:ComboBoxEditItem Content="BN không chạy thận"></dxe:ComboBoxEditItem>
                    </dxe:ComboBoxEdit>
                    <Label Content="Khu vực:" Grid.Column="5" Grid.Row="0" VerticalAlignment="Center" Margin="2,2" />
                    <Label Content="Loại chạy:" Grid.Column="2" Grid.Row="1" VerticalAlignment="Center" Margin="2,2" />
                    <dxe:DateEdit Grid.Row="0" Grid.Column="0" Margin="52,2,0,0" VerticalAlignment="Center" Name="datePickerNgayLamViec" DisplayFormatString="dd/MM/yyyy" Mask="dd/MM/yyyy" MaskCulture="vi-VN" TabIndex="18" FontSize="13" />
                    <dxe:DateEdit Grid.Row="0" Grid.Column="1" Margin="58,2,0,0" VerticalAlignment="Center" Name="datePickerDenNgay" DisplayFormatString="dd/MM/yyyy" Mask="dd/MM/yyyy" MaskCulture="vi-VN" TabIndex="18" FontSize="13" />
                    <dxe:ComboBoxEdit Grid.Column="6" Grid.Row="0"  Margin="2" FontSize="13" Name="cboKhuVuc" VerticalAlignment="Center">
                        <dxe:ComboBoxEditItem Content="Tất cả"></dxe:ComboBoxEditItem>
                        <dxe:ComboBoxEditItem Content="Khu A"></dxe:ComboBoxEditItem>
                        <dxe:ComboBoxEditItem Content="Khu B"></dxe:ComboBoxEditItem>
                        <dxe:ComboBoxEditItem Content="Khu C"></dxe:ComboBoxEditItem>
                        <dxe:ComboBoxEditItem Content="Khu D"></dxe:ComboBoxEditItem>
                    </dxe:ComboBoxEdit>
                    <RadioButton Content="Tất cả" Height="16" Grid.ColumnSpan="4" Grid.Row="1" HorizontalAlignment="Left" Margin="40,2,0,0" Name="radTatCa" VerticalAlignment="Center" IsChecked="True" />
                    <RadioButton Content="Đang diều trị" Height="16" Grid.ColumnSpan="4" Grid.Row="1" HorizontalAlignment="Left" Margin="110,2,0,0" Name="radDangDieuTri" VerticalAlignment="Center" />
                    <RadioButton Content="Đã ra viện" Height="16" Grid.ColumnSpan="4" Grid.Row="1" HorizontalAlignment="Left" Margin="220,2,0,0" Name="radRaVien" VerticalAlignment="Center" />
                    <dxe:ComboBoxEdit Grid.Column="3" Grid.Row="1"  Margin="2" FontSize="13" Name="cboLoaiChay" Grid.ColumnSpan="2" 
                                      VerticalAlignment="Center" DisplayMember="TenYeuCau" IsTextEditable="False" SelectedIndex="0">
                    </dxe:ComboBoxEdit>
                    <Label Content="Bệnh nhân:" Grid.Column="5" Grid.Row="1" Margin="2,2" VerticalAlignment="Center"/>
                    <dxe:ComboBoxEdit Grid.Column="6" Grid.Row="1" Name="cboLoaiBenhNhan" SelectedIndex="0" IsTextEditable="False" Margin="2,2">
                        <dxe:ComboBoxEditItem Content=" -- Tất cả --"></dxe:ComboBoxEditItem>
                        <dxe:ComboBoxEditItem Content="Cấp cứu"></dxe:ComboBoxEditItem>
                        <dxe:ComboBoxEditItem Content="Mãn tính"></dxe:ComboBoxEditItem>
                    </dxe:ComboBoxEdit>
                    <Button Content="Tìm" Grid.Row="3" Grid.ColumnSpan="3" Margin="2,2,0,0"  Height="23" HorizontalAlignment="Left" Name="buttonTaoPhieu" VerticalAlignment="Center" Width="70" Click="buttonTaoPhieu_Click" />
                    <Button Content="Đóng" Grid.Row="3" Grid.ColumnSpan="3" Margin="74,2,0,0"  Height="23" HorizontalAlignment="Left" Name="buttonDong" VerticalAlignment="Center" Width="70" Click="buttonDong_Click" />
                </Grid>
            </GroupBox>
            <dxp:DocumentPreview Grid.Row="2" HorizontalAlignment="Left" Name="documentPreview1" />
        </Grid>
    </Grid>
</dxc:DXWindow>
